package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_topic")
public class Topic extends Model<Topic> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String title;
	private String content;
	private String avatar;
	@TableField("item_pic_url")
	private String itemPicUrl;
	private String subtitle;
	@TableField("price_info")
	private BigDecimal priceInfo;
	@TableField("read_count")
	private String readCount;
	@TableField("scene_pic_url")
	private String scenePicUrl;
	@TableField("sort_order")
	private Integer sortOrder;
	@TableField("is_show")
	private Integer isShow;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getItemPicUrl() {
		return itemPicUrl;
	}

	public void setItemPicUrl(String itemPicUrl) {
		this.itemPicUrl = itemPicUrl;
	}

	public String getSubtitle() {
		return subtitle;
	}

	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}

	public BigDecimal getPriceInfo() {
		return priceInfo;
	}

	public void setPriceInfo(BigDecimal priceInfo) {
		this.priceInfo = priceInfo;
	}

	public String getReadCount() {
		return readCount;
	}

	public void setReadCount(String readCount) {
		this.readCount = readCount;
	}

	public String getScenePicUrl() {
		return scenePicUrl;
	}

	public void setScenePicUrl(String scenePicUrl) {
		this.scenePicUrl = scenePicUrl;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	public Integer getIsShow() {
		return isShow;
	}

	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Topic{" +
			"id=" + id +
			", title=" + title +
			", content=" + content +
			", avatar=" + avatar +
			", itemPicUrl=" + itemPicUrl +
			", subtitle=" + subtitle +
			", priceInfo=" + priceInfo +
			", readCount=" + readCount +
			", scenePicUrl=" + scenePicUrl +
			", sortOrder=" + sortOrder +
			", isShow=" + isShow +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
